package com.tnstart.android.control.light.db;

import java.util.HashMap;
import java.util.Map;

import android.net.Uri;

public class AreaColumn extends DatabaseColumn {

	public static final String TABLE_NAME = "areas";
	public static final String AREA_ID = "area_id";
	public static final String AREA_DEFAULT_NAME = "area_default_name";
	public static final String AREA_NAME = "area_name";
	public static final String AREA_TYPE_ID = "area_type_id";
	public static final String STATUS = "status";

	public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY
			+ "/" + TABLE_NAME);
	private static final Map<String, String> mColumnMap = new HashMap<String, String>();
	static {
		mColumnMap.put(_ID, "integer primary key autoincrement");
		mColumnMap.put(AREA_ID, "integer");
		mColumnMap.put(AREA_DEFAULT_NAME, "text");
		mColumnMap.put(AREA_NAME, "text");
		mColumnMap.put(AREA_TYPE_ID, "integer");
		mColumnMap.put(STATUS, "integer default 0");
	}

	@Override
	public String getTableName() {
		// TODO Auto-generated method stub
		return TABLE_NAME;
	}

	@Override
	public Uri getTableContent() {
		// TODO Auto-generated method stub
		return CONTENT_URI;
	}

	@Override
	protected Map<String, String> getTableMap() {
		// TODO Auto-generated method stub
		return mColumnMap;
	}

}
